package com.xxl.job.executor.mvc.controller;

import com.xxl.job.core.util.JacksonUtil;
import com.xxl.job.executor.mvc.dao.DmMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 达梦交互接口
 *
 * @author: Ace Lee
 * @date: 2019/3/21 10:18
 * @version 1.0
 */
@RestController
public class DmJdbcController {

    @Autowired
    private DmMapper dmMapper;

    @GetMapping("/mock")
    public String mock() {
        List<String> strings = dmMapper.selectTables();
        String s = JacksonUtil.writeValueAsString(strings);
        return s;
    }


}